

import java.rmi.Naming;

public class RmiServer {

	public static void main(String[] args) {
		try {
			IRmiService service02 = new RmiServiceImpl("service02");
			Naming.bind("service02", service02);
			System.out.println("server registry sucessfully");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
